/**
 * 
 */
package gui;

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;

/**
 * @author kimmelbs
 * 
 */
public class MenuBarSet extends JMenuBar {

	public MenuBarSet() {
		super();
		this.add(getFileMenu());
	}

	private JMenu getFileMenu() {
		JMenu file = new JMenu("File");
		
		JMenuItem mi = new JMenuItem("Exit");
		mi.addActionListener(new ActionListener() {

			@Override
			public void actionPerformed(ActionEvent arg0) {
				System.exit(0);

			}
		});
		file.add(mi);
		
		return file;
	}

}
